package ducksimulator

import "fmt"

// interface
type FlyBehavior interface {
	Fly()
}


// impl 1
type FlyWithWings struct {}
func (f FlyWithWings) Fly() {
	fmt.Println("I'm flying!!")
}

// impl 2
type FlyNoWay struct {}
func (f FlyNoWay) Fly() {
	fmt.Println("I can't fly")
}

// impl 3
type FlyWithRocket struct {}
func (f FlyWithRocket) Fly() {
	fmt.Println("I am flying with a rocket!")
}